package org.springside.modules.security.springsecurity;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
 
/**
 * 对org.springframework.security.core.userdetails.User类的扩展
 * @author ttitfly
 *
 */
public class UserInfo extends org.springframework.security.core.userdetails.User{  
    private static final long serialVersionUID = 1L;  
  
    private Long userId;  
  
    public UserInfo(String username, String password, boolean enabled, boolean accountNonExpired,
            boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities){
    	super( username,  password,  enabled,  accountNonExpired, credentialsNonExpired,  accountNonLocked,  authorities);
    }
  
    
    public Long getUserId() {
		return userId;
	}


	public void setUserId(Long userId) {
		this.userId = userId;
	}


	public static long getSerialVersionUID() {  
        return serialVersionUID;  
    }  
  
    
}  